/*
 * This class keeps all the gameStatistics for a player, plus one for prior history
 */

#ifndef PLAYER_STATISTICS_H
#define PLAYER_STATISTICS_H

#include "gamestatistic.h"
#include <vector>

class PlayerStatistics
{
public:
    PlayerStatistics();
    ~PlayerStatistics();
    std::vector<GameStatistic> getGameStatistics();
    GameStatistic getPriorHistory();
    GameStatistic getTotals();
    void addGameStatistic(GameStatistic gs);
    void setPriorHistory(GameStatistic *gs);
    int getGamesPlayed();
    void setGamesPlayed(int inputGamesPlayed);
    void incrementGamesPlayed();
    int getGamesPitched();
    void setGamesPitched(int inputGamesPitched);
    void incrementGamesPitched();
    void setTotals(GameStatistic *gs);



private:
     GameStatistic priorHistory;
     std::vector<GameStatistic> gameStats;
     GameStatistic totals;
     int gamesPlayed;
     int gamesPitched;

};

#endif // PlayerStatistics_H
